\documentclass{scrartcl}
\usepackage{graphicx}
\usepackage{pythontex}
\begin{document}
\begin{pycode}
print(r'\begin{center}')
print(r'\textit{C message from Python!}')
print(r'\end{center}')
\end{pycode}
Frickle
\end{document}
