Completed Python code samples