Replaced binary function by Python's binary formatting

Python supports conversion to binary by using the `b` formatter. This also means it'll work for big integers (the current implementation won't work for really large integers).