Rails Controller Namespaces In Python For Loop