The / operator in Python 3 returns a float, which was causing TypeErrors when being passed to the << or >> operators.