[BUILD,PYOPENMS] fix pyOpenMS build

- move overloaded functions into a class (pyOpenMS currently cannot deal
  with overloaded global functions)
- write tests for conversion
Merge pull request #773 from OpenMS/fix/pyOpenMS_fix

[BUILD,PYOPENMS] fix pyOpenMS build