[python] add spiral printing