MacPorts installs its own version of Python alongside Apple's version. You can manage the active version of Python (the one that gets run when you type in python
at the command line or by /usr/bin/env) by using the port select
command. See this question.