Make code more pythonic (7)

- sort imports
- use single quotes whenever possible
- use the new string formatting syntax
- no need to put parenthesis around simple conditionals
- use python calls whenever possible (os.remove, shutil.copy...)