adding cpu gravity python interface