python script to use rpm lib

Signed-off-by: Eli Qiao <taget@linux.vnet.ibm.com>