7.0 PEP8, Deprecation, Spelling and Logic

I think you must return {} to avoid web client error