main.py: Remove trailing whitespace
Two blank lines between top-level definitions
Add whitespace around operators
Remove superfluous blank lines
Add newlines after colon
Add whitespace around operator
Remove spaces inside parentheses
Remove trailing semicolons
Fix indent of block comment
Add spaces in comments
Break lines to stay within 79 characters
Merge branch 'pep8'
TextItem: Set document margin to 0
Cursor positions the baseline of new text items
Newly created text items are focused
Remove debug prints
Fix a typo
Merge pull request #1 from Mortal/master

I will merge this.