This is intentional -- when you import a module, Python remembers that
it has imported it so that if you import it again (usually from
another module) it won't be parsed, compiled and initialize again.
For the situation you are having, however, you can use the reload()
built-in function, which forces reparsing etc. of the module. Note
that the syntax is
reload(expression)
where the expression must evaluate to a module object; i.e. you must
already have imported the module once. Note that reload() does not
recursively reload modules imported by the reloaded module; you will
have to do that yourself if it is necessary.
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>