add tk to python dependencies
many small fixes so that python, matplotlib, and ipython work with TKAgg backend