Grouping imports in order to satisfy PEP8