Bug Fix in regexes.py relating to keyword list

Fix bug caused by not declaring KEYWORDS_FILENAME as global.