Coding style and convention cleanup

- remove training spaces
- remove unused "if __name__ == '__main__'" block
- add newline to the end of file

PEP8 (Style Guide for Python Code)
- limit all lines to a maximum of 79 characters
- don't use spaces around the = sign when used to indicate
  a default parameter value.
- always surround binary operators with a single space on either side
- never use more than one space on both sides of a binary operator

PEP257 (Docstring Conventions):
- use triple double quotes
FIX interpolation code

If two data points have the same x coordinate, then return average y.
Maybe it is even better to raise an exception (None as return value
can't be used in calculations anyway)
Typo fix
Merge branch 'bugfixes' of https://github.com/Cougar/droidcontroller into devel