Make travis tests work with source distributions and py3