Full Width Half Max Python Function Syntax