Invokes a function on the gateway. It will return the return value of the function, or throw an exception if something went wrong calling that function.
String function - The function name.
PyObjects args - Any number of args to send to the function in a list.
Object return - The return from the function that was passed in.