Add synchronize_port implementation

I added a ```synchronize_port``` implementation that wraps the base
class implementation and adds some extra logging to help track down
spurious, possible race-condition errors.
Fix flake8 errors
Merge pull request #45 from agentultra/akanda-quantum-dhc-2603

Add synchronize_port implementation