Author here. This repo got popular before I had a chance to write README and organize code. I am going to make the code more consistent, add tests, and write brief tutorials by the following month. Please let me know if you have suggestions.
if __name__ == "__main__":
import doctest
doctest.testmod()
https://docs.python.org/3.5/library/doctest.html