Update sens_dev.py

Old C++ code converted to python. Login script added but not implemented