test code from kivy devlopment