line 6 suggest that you are using python, so you need to include some sort of eclass for that.