I thought callable was being deprecated. http://stackoverflow.com/questions/624926/how-to-detect-whether-a-python-variable-is-a-function