HMC6343 - I2C Compass Module

Hello. I would like to use the “HMC6343 - I2C Compass Module” which I just bought for my Arduino board also for the BBB. Can anyone refer me to a library (e.g python)? Thanks!

Have a look at some of the code here:

And this might help some too:

Here’s my poor attempt for the HMC5883L: