Full Width Half Max Python Runtime Errors In C