Add python solution to challenge 39

Signed-off-by: James Durand