fix retrying to connect to a fennec device
fix some pylint issues (required for porting to python3)