Generic Python decorator utilities
