Full Width Half Max Python Runtime Errors C