BUG: Fixed Python console regressions
BUG: Fixed Python console regressions

1. Removed extra blank lines from Python console output. Fixes #731.

2. Fixed invalid command line when string is printed while editing command. For example, copy-paste the command below to the console (it prints a message after 3 and 6 seconds) then immediately enter "print" (without quotes, do not press Enter), wait for the message to appear, enter "123123123" (without quotes) to complete the command, and press Enter => now the command string is correct (before this fix it was corrupted).

def delayedprint():
  print "something printed 1"

qt.QTimer.singleShot(3000, delayedprint)

commontk/CTK,CJGoch/CTK,commontk/CTK,jcfr/CTK,jcfr/CTK,jcfr/CTK,commontk/CTK,SINTEFMedtek/CTK,jcfr/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,jcfr/CTK,CJGoch/CTK,CJGoch/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,CJGoch/CTK,commontk/CTK,CJGoch/CTK