Fix codingstyle for pep8 in python template

Get pep8 styled python classes.
Rename computet_ into detected_

detected seems to be the better name for this variables. Also it was already
used in the python template.