How to check whether a system is big endian or little endian?
In Python:
from sys import byteorder print(byteorder) # will print 'little' if little endian