Implementing descriptor_orb; for loop in Cython