Adding a missing function compare.py

Signed-off-by: Meghana <mmadhusu@redhat.com>