Python Test For Inequality Symbols