sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column X could not find table Y with which to generate a foreign key
Solution 1:
ok I was able to solve it by explicitly naming the Papers table
__tablename__ = 'papers'
not sure why this was suddenly necessary, since it all worked before, but with that fix everything works.