fixed buglet relating to code handling attributes that are non valid python names