ignore ds_store
added cython function for generating terms