Added Python solutions for problems 1 - 3