Work around bug in argparse.FileType
This works around a bug in CPython's argparse.FileType
class,
where stdin and stdout are opened in text mode even if the mode
is specified as 'rb' or 'wb'.
This works around a bug in CPython's argparse.FileType
class,
where stdin and stdout are opened in text mode even if the mode
is specified as 'rb' or 'wb'.