Ok, I got Bluetooth pan working on the n9. After that I got pan working with the test-nap.py script from the bluez repo and the tether.sh script from another thread on maemo.org. I have put all the files into this gist: https://gist.github.com/4133214