added export features, and moved to using the system python 2.7