Make modlist python3 compatible.

Change-Id: If02832e3a73fdb8e0da91f8d0c04fb02b6f01541