Obscure directory helpers for python.