pylib: if ROCKSDEBUG is set print out all SQL issued to DB
pylib: more fixes to helper class

I'm starting to tackle the attribute using the new sqlalchemy
I haven't done anything really usefull yet just minor fixes here
there
build: minor fixes to pylib Makefile

now you can run make install inside pylib from the source to
install files on your system.
This patch avoid modifing files which are tracked by the source
repository.