May as well just use ```dirname```: http://docs.python.org/2/library/os.path.html#os.path.dirname