fixed bug when python variables are referenced inside the shell-only context.
Merge pull request #2 from huddlej/master

fixed bug when python variables are referenced inside the shell-only context
Merge pull request #1 from psudmant/master

Fixed shell: vs run: shell bug