Ok I’ll share it when I get home 
It uses ‘requests’ module and the code is from a fellow
owner which shared for cfod testing previously.
@Dave there you go! Pardon the poor coding if any 
Python: https://dl.dropboxusercontent.com/u/36134145/Spark_function.py
Spark-cli: spark function call core_name function_name "arg with spaces'