I can see from this question Why are session methods unbound in sqlalchemy using sqlite? that I need to instantiate the class for sessionmaker.
I get the same error, and I assume the 'fix' will work, only I have no idea how to 'instantiate the class'
My set up code is as per the linked question.
From this question How to instantiate a class in python I can see that I need to call the class object, and my erroneous assumption is that the:
session = sessionmaker(bind=engine)
line is the instantiation.