Python Migration

How can I savely migrate my rasp3b+/grovepi+ python2 environment to python3?