syncdata: Fix compatibility with python 2.4

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #844 from jzupka/fix-compat-python2.4

syncdata: Fix compatibility with python 2.4