Openai python api equivalent for CLI commands

Thanks, that helps with the finetunes.create command. So there is no python equivalent of the finetunes.prepare_data CLI command?