fixed merge
Use JSON
Renamed python_func to encapsulate