It should be two empty lines here, not three. You can `pip install flake8` and run `flake8` on the mopidy directory to check that you don't have any errors like this.