Ported code

I rounded out the module. Tests all pass under Python 2.7. There's a single bug in 2.6 that I haven't been able to fix. picklr.c fails to compile under Cython 1.8 (Python 3) so no luck there either.