add test case for python

change toplevel label "#block" -> "#toplevel"