Trying to make things a bit more PEP8 compliant, added logging class and setup function.