Update sens_dev.py

"Old C++ functions" merged into class for easier variable referencing. Login script moved above main function.