def bash ( filename ) : sys . stdout . flush ( ) subprocess . call ( "bash {}" . format ( filename ) , shell = True )
how to put a bash command in a python script
Runs a bash script in the local directory
def bash(filename):
    """Runs a bash script in the local directory"""
    sys.stdout.flush()
    subprocess.call("bash {}".format(filename), shell=True)