Python: Ways to Move up and Down the dir structure in Python