Removed unnecessary import in api.py

import os was not being used.