I have set a variable x="hii!!" in another file called ImporterFile.py. I thought pre-defining the variable x and then re-importing it would work, but it didn't.
from ImporterFile import x
def grab(string):
from ImporterFile import (string)
grab(x)
The original problem was that when running the file it would say that "string" wasn't a variable that existed in that file.