Change keywords to be in list form and fix python error