Giving a shot at a Python implementation of miniLock.