Some refactoring of the sync script
Do not use the python reserved keyword dir
Add function to convert values to unicode
Merge branch 'master' of github.com:thetorproject/ooni-pipeline

* 'master' of github.com:thetorproject/ooni-pipeline:
  Proposal to fix #13640