Understanding and writing a JPEG decoder in Python | Hacker News