#This is a snipped part of your keyway skript:
except:
Hub = CurrentPart()
# from here the lines are inserted in your keyway skript...
for i in range(len(Hub.Configurations)):
test = Hub.Configurations
print test[i]
if 'Finished' == str(test[i]):
print 'is already in there'
else:
print 'is new'
# from her your skript can/will continue ...