hotshot.stats.load(logfilename) returns a pstats.Stats instance, which is about as compatible as it gets.