modifications to history handling to avoid annoyances like current shell showing history of other active shells, and other history changes
add tests dir to PYTHONPATH too
more templates
update