Set parent of thread properly to get rid of warning

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Remove some debug prints, replace them by logging

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Move rowCount in each item type

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
pep8-ify emissions_treemodel.py

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Put parent() in each item

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Put index() in each item type

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
pep8-ify

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Merge 'simark/2to3' into 2to3