Determining file format using Python | Heykuki News