Two things usually help here:
1) check that the Python distributed by Apple is selected (sudo port select python python27-apple). If you have a custom-build, e.g., against Python from MacPorts, then select this version, but always make sure you use the right Python version.
2) clean the cache using instant-clean. This works often when you upgrade FEniCS and still have some things in cache that produce problems. Your error however indicates that you most likely mixed up different versions of Python.
If both hints do not help, then specify the source for the binary package you installed. There is an officially maintained version of FEniCS 1.3.0 for Mavericks on fenicsproject.org which worked for me and another colleague.