user rpm python api to get version

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>