Rearrange order of imports for PEP8 compliance

Fixes #133
Merge pull request #138 from adamrp/issue-133

Rearrange order of imports for PEP8 compliance