AttributeError: can't set attribute

OK, any advice on documentation on how to do this?
Many thanks