You don't have to manually assign variable names to the object instances, simply store them in a list when you create them dynamically, like in this example where a list of objects gets created with information from a file:
class A:
def __init__(self, words):
self.words = words
a_objects = []
file = open("testfile.txt")
for line in file:
words = line.split()
a_objects.append(A(words))
If you need to access the objects directly using a key, you will have to use a dictionary instead of a list:
a_objects = {}
You can add key-value pairs to it like this:
words = line.split()
key = words[0]
a_objects[key] = A(words)