I have tried the following:
>> modname = 'sys'
>> import modname
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named modname
Why does import not recognize 'sys' as the name of the module to be imported?