Python code: metadata