Looked through library and tried to clean things that were potentially dangerous (like {} as a default argument, which may not do what you think it should do), and added some TODOs where things might be cleaned. I also added a setup.py using setuptools to make this easy to install and use. Will study this library further as I make use of it more.