Q:

App Engine - Specify entity name at runtime

In the low-level Java api, I used to be able to make up entity names at runtime. 
In python, it seems that I have to pre-define a class name that is also my entity name:
class SomeKindaData(db. Expando):
    pass

sKD = SomeKindaData(key_name='1')
...

Is there a way to make entity names up at run time in App Engine for Python? 

A:

I don't know much about App Engine, but you can define classes at run time like this:
def get_my_class(name):
    return type(name, (db. Expando,), {})

So type takes three arguments:

name of class
tuple of classes to inherit from
dictionary of class attributes

