check for decimals in python - Search