Create an organization and create user in same organization through python code

hey can anyone help me to create api which take admin username and password, to create an organization, user, and also connect data source with it and take json file from pc to import as a dashboard and also take organization name, username, user password, user email as an input