First pass at Python answer for Bob problem