Write a function flatten(), which turns an arbitrary nested list (tuple) into a flat list.
Hint: the methods extend() and append() and the function type() will be needed.
>>> flatten([(1,2), "Python", ["a",[1,7]], 1, 1.3])
[1, 2, 'Python', 'a', 1,7,1, 1.3]