testcode python