fileobj vs string vs bytes

A computer can only store bytes

See this stackoverflow answer