complete python code