Revise py based on Pylint