Handle python side of custom datatypes; use TRAVIS_BUILD_DIR env variable