Python Use Function Output As Input Director