maybe use subprocess... os.system will be replace in the future in favor of subprocess
or
call nbconvert without python, escaping to the shell using "!"