No, unfortunatelly not.
But you have several ways to do it.
The address you want to save consists of a host and a port number. You could store it in file this way:
Reading it would look like this then:
f.write('%s:%d' % mac_address)
This way you will get the same tuple you've saved. The split() method in this case returns a list of two strings, the host and the port. The second line make a tuple out of this with the port part converted to int.
a = f.read().split(':')
mac_address = (a, int(a))
The disadvantage of this method is that it will only work for addresses (host-port tuple).
A more general way would be to use the marshal module.
The disadvantage of this method is that the file will not be human readable (a binary). Note that because of this you should open the file using "wb" and "rb" modes. Don't use the ".txt" extension too. And don't forget to import the marshal module.
mac_address = marshal.load(f)
Hope I helped.