Libmonkey: Stats and python bindings

This include the statistics interface and python bindings support for the library, as well as other fixes as part of GSoC programme.