Fix import for installations without c extension.