respect PYTHON env var, and use -p for mkdir
exit once your stdin closes
Merge pull request #3 from zooko/master

whee