I want to run
from tests import test_user_credentials, test_team_site_url
instead of
from office365.sharepoint.webs.web import Web
which is stated in my original question. Sorry for the confusion .