created optional method to interact with sensors via python script as
reading from file was proving unreliable
Fixes for bugs in the python sensor methods and script