Add test and set Travis CI.

Added simple test code using [pytest](pytest.org) and configured [Travis CI](https://travis-ci.org/).
You can check my fork's build as example: https://travis-ci.org/yoloseem/phpy/builds/17679845