implement keywordhandler with python types