Added a certificate creation script, fixed an ugly placement of imports in worker.py