Make the portalpy connection work

Testing with somethings and applying my own ideas.