Importing the os module under ten thousand different names doesn't seem to give any problems.
for i in range(10000):
exec("import os as foo%i" % i)
for i in range(10000):
exec("foo%i.getcwd()" % i)
With the imports in different classes:
for i in range(10000):
exec("""class FooClass%i:
import os as foo%i
print foo%i.getcwd()""" % (i,i,i))
Both run without problems. Not a guarantee of course, but at least it appears you don't run into immediate practical problems.