Use os.path.exists

Because isfile fails on character devices, which spidev is.