[scripts] Fix PEP8, Fix Lint, Fix Python3 Compatibility

- Fix PEP8.
- Fix Lint.
- Fix Python3 Compatibility.
- Better code attract more contributors.

:octocat: