Endianness

Clean up using the _be functions, use struct module instead for speed