learning to bit fiddle with python