I have two python files first.py and second.py
first.py looks like
def main():
#some computation
first_variable=computation_result
second.py looks like
import first
def main():
b=getattr(first, first_variable)
#computation
but I am getting No Attribute error. Is there any way to access a variable inside main() method in first.py through second.py?