Binary File Handling Program In Python