MAC address randomization is in fact built in to NetworkManager (edit: 1.4), so none of this work is really necessary (edit: if you are on 1.4 or later).
NetworkManager also includes more advanced modes which make the MAC address stable for a given hotspot, but random between them.
https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoof...