This is one of Python's ability:

http://stackoverflow.com/questions/706721/how-do-i-pass-a-method-as-a-parameter-in-python

And since it didn't throw any errors, I think it's correct?