Python Reverse Byte Ordering Functions In R