Minor changes to previous Python solutions
Added Python solution to problem 46