[sanlock] 06/18: python: Use PyBytes converter for write_resource API