Python Get Parent Directory Of Path String