python/avg_q/Measure.py: Update center-of-gravity measurement with
component direction
Python updates (pylint)