Extended ctselect to consider user defined energy thresholds
fixed minor bug
Integrate code.
Correct for Python 3.x.

The script was adapted to comply to Python 3.x syntax.
Merge branch '1039-allow-energy-thresholds-in-ctselect' into integration