fix imports according to pylint
fix more pylint warnings and errors
add pylintrc