python3 port
fix endianness fetching error
Merge pull request #6 from maralla/master

python3 port