Type annotations for subscripts
Compare String-types by instances
Fix PEP8 errors/warnings