does ret need to be a list?  If order doesn't matter and you are mainly testing inclusion, you can use a frozenset

`ret = frozenset(_[:-1] for _ in open(os.path.join(pwd, prop)))`