solutions for python exercises