Fixes #237

Sorry for typo in commit message
This is only a minor thing, but can you please change ``print`` to writing to ``sys.stderr``? I know that the GUI is probably not going to be run much from command line scripts, but it would be nice to have it adhere to the best practices anyway. Same goes for the error output on lines 18, 19, 36 and 37.