Don;t compare to None, just do "if avp_def"

In python False, None, 0, and empty containers all evaluate to False in a boolean context.