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