Python Get Working Path Train