note int.from_bytes is python 3 required