[python] Get parent of current directory from Python script