Libmonkey: Minor bugfixes to monkey.pyx

Signed-off-by: Vladimir Cernov <gg.kaspersky@gmail.com>
Libmonkey: Port library test suite to python

Signed-off-by: Vladimir Cernov <gg.kaspersky@gmail.com>