PEP 8 imports

From PEP8:
 Imports should be grouped in the following order:

    standard library imports
    related third party imports
    local application/library specific imports

You should put a blank line between each group of imports.
Merge pull request #208 from Winnetou/patch-9

PEP 8 imports