syncdata: Fix compatibility with python 2.4

Signed-off-by: Jiří Župka <jzupka@redhat.com>