Apparently you can't pass variables of functions, you have to store functions themselves in dictionaries