Cleaning imports and separating API to another file. PyLint fixes for main file