grasp library for python