implemented ifnotnull special form in Python