Python Write Argument Must Be Str Not Bytespeed