It has some debug printing for further investigation (marked with comments).
These are the key things i am watching for:
print(lib8relind.__file__) # Check if lib8relind is the correct one
print("DEBUG: ", relay, lib8relind.get(0, relay), lib8relind.get_all(0)) # Debug print
Could you please try...