valid arithmetic operator in python - Search