<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def createReader(clazz, readername):
 """Static method to create a reader from a reader clazz. @param clazz: the reader class name @param readername: the reader name """

        if not clazz in ReaderFactory.factories:
            ReaderFactory.factories[clazz] = get_class(clazz).Factory()
        return ReaderFactory.factories[clazz].create(readername)