Add python functions.  Fix warning.