PyFacebook is a wrapper for the Facebook API.
Since there hasn't been a stable release yet, you need to get the source from Subversion on Google Code. Only one file is required, which you can download here (rename it to facebook.py). As of r70, Django and Pylons support have been pulled into separate modules. You will need to download the whole package and set it up somewhere on your path. See here for more information.