Read And Write Binary Files In Python