old python code