Update Basic Python code