portfolio migrate to python3.2 using liblightbase