Merge pull request #6 from thomasf/flake8-no-warnings

Code cleanup
remove unused imports. minor cleanups
check if parent is set in sliders before updating OSD