Store Functions In A Dictionary Python