beginning Python translation for practice