Remove Nth from end python accepted