Tweak generated files
Copy code from main Mopidy repo