upload.py: do not modify hardware list variable when saving hw file on disk