full code review - python