Moved functions into a class so they can all use connection manager

Used print() syntax from python3