Flake8
Be Python 3 compatible

Not that anybody actually uses Python 3, but this helps very much with
finding obscure bugs.
Make CaldavStorage.list faster

This will break all tests, see
https://github.com/Kozea/Radicale/pull/144