Support Python 3k

This is attempt to support Python 3k in biggles (see #42). Note that the branch is **not ready to be merged**. Although the code in this branch compiles, it still segfaults at runtime. The purpose of this pull request is to make the code review easier.
Totally confused by your comment @esheldon.