pep8's 80-character limit does not exclude imports, if this is ugly then it's probably a sign that it should be refactored to use a qualified import and/or less redundant class names.