"System.AppDomain.CurrentDomain" throws an exception saying "SystemError: Application code cannot access System.AppDomain.get_CurrentDomain() using Reflection." This needs to be fixed in IronPython by having a list of restricted types, and generating IL to access them instead of using Reflection.
This is related to 16485, but different.
The workaround is to use code like this:
for i in xrange(1000):
try:
System.AppDomain.CurrentDomain
except: pass
else: break
# now you can call System.AppDomain.CurrentDomain