Add initial randomize_mac.py v.1
Refactor some unpythonic junk