Added Python solutions to problems 47 - 51