See https://github.com/sillsdev/machine/pull/284. This needs to be ported to machine.py.
See sillsdev/machine#284. This needs to be ported to machine.py.