Are you using a() on other imports? For example in in past.py, you might be using function inside function that might lead to infinite loop
def past():
print("Inside past()")
a1() # This might trigger an infinite loop
If past.py imports mine.py or mine.py imports past.py you might be triggering something unwanted