The call to the Python script in the submission file (at least when I run on my localhost) is constructed as:
'python3' < 'script.py' > 'aiida.out'
While that's the common way to pass the input to QE, or other binaries or shell scripts, it's a bit weird for Python, and I would have rather expected something like:
'python3' 'script.py' > 'aiida.out'
So far, this hasn't really caused any issues, and the code that writes the submission script in that way is not here, but in aiida-core, so this issue just serves as a reminder for the future.