Import a package defined by a variable
<p>I want to do some package import timing tests. For this, I want to define a list of packages:</p>

<pre><code>packages = [ 'random', 'dateutils', ... ]

for package in packages:
    import package
</code></pre>

<p>This is of course not working because <code>import</code> tries to import package "package". How can I tell <code>import</code> to import the package pointed to by the variable "package"?</p>
