Databricks command says databricks-cli isn’t configured when run from Python (with os.system()) but works fine when pasted into command line

My Python code constructs a string in the form
myCmd = 'databricks fs cp dbfs:/mnt/extracts/dsp/{}/full.xml "{}"'.format(extractId, file_path)

This results in a string like this: databricks fs cp dbfs://mt/extracts/dsp/123/full.xml c:\filepath\full.xml

When I attempt to run this string using os.system(myCmd) I’m given the following warning (either within the Python console, or in the cmd window):
Error: InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `C:\Users\xxxx\AppData\Local\Continuum\anaconda3\Scripts\databricks configure

But when i copy and paste the constructed myCmd to the command prompt the databricks copy works fine.