how to find maximum between two values in python