For PEP8 purposes, we consider stuff from "pulp" to be 3rd-party, and stuff from "pulp_rpm" to be the local app. So you should have three groups of imports, with anything from "pulp" in the middle group, and "pulp_rpm" in the last group. http://www.python.org/dev/peps/pep-0008/#imports