Split the body of the thread into a separate function.
Split the body of the thread into a separate function.

Will make it easier to manage in future. We leave it wrapped with a
try/except in run().

thecynic/pylutron