The previous fix was not the problem, I just needed to add -u to the python #! :(