changes for greenplum to Mention.py