fixing python file to match the number of bytes