Python Get Parent Directory From File Path