remove compatibility for hasattr/next && autopep8