Added compatibility to python pickle as alternativo the C version