Refactor `List.print_list` and `Tree.print_tree` in `art_apex_test.py`. am: 09744acaab
am: fb6e5510f5

Change-Id: I8df10d7737dc65018d3ad5829484b5dc8e2e099d