2nd submission for python/bob, no regexes