How To Write Binary Data To A File In Python