study python code