ca20301
python: Extract create_resource() helper Replace duplicate code for allocating and initializing sanlk_resource struct with a helper. Signed-off-by: Nir Soffer <nsoffer@redhat.com>