STYLE: Fixing and refactoring linting
- Wrong path `pandas/src` corrected (`.px.in` was not being tested)
- Made more compact and readable
- Unified the flake8 errors that are being ignored
- Moving doctests and check_imports to `lint.sh`
- Moving linting from py2.7 to py3.6