pep8 compliant
Add setup.py and LICENSE for distribute more easily.
Add .travxs.xml for continuous integration. Put all test cases into test
folder and add a script (runtests.py) for run them. Python3 compatible
and another little changes to get a better API.