Reading And Writing Binary Files In Python