fix python lib loading