Add missing import os to instance.py