[entity] Add a cw_related_rqlst method returning the RQL select node of cw_related method
This is useful if one wants to modify the query before execution.
A bit a PEP8 style fix in tests along the way.
Related to #12306543.
usr/lib/python2*/*-packages/cubicweb/entities/
usr/lib/python2*/*-packages/cubicweb/ext/
usr/share/cubicweb/cubes/
usr/lib/python2*/*-packages/cubicweb/*.py