fixing bugs in the syncer, removing old pyquery code: