moved rgslib.py into own package; fixed pylint errors