The below code works fine with Python-2.7:
i = open(sys.argv[1], \'rb\') o = sys.stdout copyfileobj(i, o)
With Python-3.6 I get an error: