get parent of current directory from python script,d = os.path.dirname(os.getcwd())