Rearrange order of imports for PEP8 compliance

Fixes #133