[BUILD,PYOPENMS] fix pyOpenMS build

- move overloaded functions into a class (pyOpenMS currently cannot deal
  with overloaded global functions)
- write tests for conversion