Use JSON
Renamed python_func to encapsulate