fixed minor for generating chain names in structure.py