Python Path Suffix Without Dot, This snippet deals with both instances and works in both Python 2 and 3.