Fix Python3 compatibility

Use sorted on dict_keys object, not sort which is unavailable
Add unittests

Prepare for travis testing with coverage

Add test for:
    Example
    Add operation
    And operation
    Or operation
    Not operation
Add travis continuous integration tests

Add Makefile for building, testing, generating docs
Add tox configuration