Changing imports to use six paths also updating exception syntax to use
new style "except Exception as e" instead of except Exception, e.