python mirror of inferlink code