added Python/C hybrid