Rewrite of kit-mensabot in python