I like to put Python standard library imports first, followed by imports from third-party dependencies, followed by QIIME stuff, and I typically put a blank line between each section.