converting arduino to nfc.py