python <<EOF print('blah') EOF
If you want to use the interpreter from a specific virtual environment instead of the interpreter found in PATH.