What about using `startswith` method? I know your implementation will also work, but you are looking for a prefix, so I think the `startswith` method fits better...

Something like this:
`if blocks[1].startswith('addr:'):`