Made changes to nfc.py