Remove extraneous Python code.