adds python specifiers to code blocks