[python] Applying function with multiple arguments to create a new pandas column