Pyk3 compatibility

This also adds #7