working motion sensor

motionsensor.py tested, initd framework untested