Searching in pytest/sys