initial release

Signed-off-by: Jiri Kuncar <jiri.kuncar@gmail.com>
refactoring, tests and documentation
python 3.3 compatibility fixes