working progress on a python solution to kata eighteen