Fix pylint/PEP8 and add a small test on backend loading