from os.path import dirname
dirname('/home/kristina/desire-directory/scripts/script.py')
dirname(dirname('/home/kristina/desire-directory/scripts/script.py'))
Get parent of current directory from Python script