Fix missing parentheses and sandbox checking

As far as I know, if the Python function parentheses are omitted, the statement will return function reference, which is always to be True.