Changing code blocks from python to yaml and bash