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