python implementation of Cohen-Sutherland algorithm