[python] How to find if directory exists in Python