python json library

encoding data with python library
clean-up & license

removing all dead code and adding the license