change sync helper to be py26 friendly