Add str_e so we can print exceptions without raising exceptions. Also, random pyflakes cleanup.