PEP8 compliance, use loop_forever, better callback handling