Updated to handle NULL values; check python addin for errors.