started converting everything to python