Python code for an RFID Card Reader