Added c++ cell attributes and python attributes. Implemented iteration of cells of given types