Types Of Higher Order Functions In Python