Use a smarter way to export python lib path.