[pymapistore]: Fix return value check in set_debuglevel
[pymapistore]: Fix mixed enum types in return values