Python Read Binary File And Convert To Jpeg