Python package 2

Some minor enhancements missing from #217.