python decimal checker - Search