added hwlock.py. improved i2c, filelock