I recommend creating a class to hold the variables you're trying to create. Alex Martelli's famous bunch recipe would get you almost all of the convenience you are asking for, without resorting to modifying the local symbol table (which the docs specifically warn against doing).