UndefinedError: 'dict object' has no attribute 's1'