'Create the Ndef message that will written to tag'

def create_ndef_message(self, *recs):

    records = []
    for record in recs:
        if record:
            records.append(record)
    return NdefMessage(records)
