Travis pypi deployment configuration

This is not ready to merge yet. Will eventually (hopefully) fix #1097.