Full Width Half Max Python Function Example With Variables