COMPAT: Try to use Python 2/3 function declaration.