Convert default python codeblocks to yaml and fix CLI examples