Move rest python script and dependencies to separate directory, pylint fixes.