[sanlock] 18/23: python: Simplify parse_resource() with PyArg_ParseTuple