Use binary strings for magic numbers

Fixes it for Python 3.