Utility functions for Python class constructs.