A python based agent library