[sanlock] 15/18: python: Use PyBytes converter for reg_event API