Moved six and long occurence as noqa because of python3.
Removed StandardError in favor of Exception.