Static function decorators for python 2 compatibility