json not needed, try/except wrap importing pyyaml