mark and toys python solution