python/bithacks: add bithacks problem implementation for the python
virtual machine