improved Log class python wrapper, added PerfLog class python wrapper