Make code more pythonic (10)

- sort imports
- do not add superfluous parenthesis around simple conditionals
- keep lies within 80 characters
- use the new string formatting
- use single quotes whenever possible