I have put the question in the figure below:
EDIT The question put next to the figure is:
How do I make script_A1 import a function
You can use a trick of adding the top folder to path:
import sys sys.path.append('..') import folderB.something
You can also use imp.load_source if you prefer.