Generate a Python program that returns the smallest even number in a given list
nums = [5, 7, 9, 8, 4]
def find_smallest_even(nums):
    smallest = None
    for num in nums:
        if (num % 2 == 0) and (smallest == None or num < smallest):
            smallest = num
    return smallest