Initial commit of Python implementation of BMT