Read File As Bytes Python, read(4)) instead (or read everything into memory with a single .