operations on clusters written by python