class Classe(object):
propriedade = 0
def metodo(self):
print(self.propriedade) #se tiver só propriedade aqui seria uma variavel local
objeto = Classe()
objeto.propriedade = 10
objeto.metodo()
#http://pt.stackoverflow.com/q/183675/101
Y2xhc3MgQ2xhc3NlKG9iamVjdCk6CiAgICBwcm9wcmllZGFkZSA9IDAKICAgIGRlZiBtZXRvZG8oc2VsZik6CiAgICAgICAgcHJpbnQoc2VsZi5wcm9wcmllZGFkZSkgI3NlIHRpdmVyIHPDsyBwcm9wcmllZGFkZSBhcXVpIHNlcmlhIHVtYSB2YXJpYXZlbCBsb2NhbAogICAgICAgIApvYmpldG8gPSBDbGFzc2UoKQpvYmpldG8ucHJvcHJpZWRhZGUgPSAxMApvYmpldG8ubWV0b2RvKCkKCiNodHRwOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8xODM2NzUvMTAx