for filename in args.infile:
    base, ext = os.path.splitext(filename)
with open('{}1{}'.format(base, ext), 'wb') as outf:
    with open(filename, 'rb') as inf:
        pass
TypeError: приведение к Unicode: нужна строка или буфер, найден список