Python Get Directory From Filename