remove compatibility for hasattr && autopep8