Support Python 3k

This is attempt to support Python 3k in biggles. 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 easy the code review.