Fix pep8
Fix a issue in PY3 that print_exception() fails if value is None, #38