Given two integers hour and minutes, return the smaller angle in degrees between the hour hand and the minute hand on an analog clock. The input represents a valid time, and the result may be fractional. Handle edge cases such as 12:00, 12:59, and times where the hands overlap.
def clock_angle(hour, minutes):