Started wondering: won't this fail on big endian systems? Shouldn't I do something like:

```python
import sys
if sys.byteorder=="little":
    assert jpg.startswith(b'\xff\xd8')
else:
    assert jpg.startswith(b'\xd8\xff')
```

Does anybody have any background on how to handle this nicely?