<filename>scripts/update_api_docs.py
import subprocess

out = subprocess.check_output(["pydocmd", "simple", "pymagicc+"])

print("\n" + out.decode("UTF-8").replace("h2", "h4").replace("h1", "h3"))

<filename>scripts/update_api_docs.py
import subprocess

out = subprocess.check_output(["pydocmd", "simple", "pymagicc+"])

print("\n" + out.decode("UTF-8").replace("h2", "h4").replace("h1", "h3"))
