clean python puppet class