Convert script to python package
Split the script into several module and create regular python package with setup.py
and according Makefile in turris/turris-os-packages>
This will increase readability (600+ lines of code in one file at the moment) and also follow our packages guidelines.