a very dirty hack to make TabularCPD's __init__ to work with both python lists and numpy arrays