fix pep8 on base_handlers.py