I'm trying to make my project python2.7 and 3 compatible and python 3 has the built in method int.from\_bytes. Does the equivalent exist in python 2.7 or rather what would be the best way to make this code 2.7 and 3 compatible?

```
>>> int.from_bytes(b"f483", byteorder="big")
1714698291

```