def push(one, array):
array.append(one)
def pop(array):
if len(array) > 0:
one = array[len(array)-1]
del array[len(array)-1]
return one
else:
return None
def pop_first(array):
if len(array) > 0:
one = array[0]
del array[0]
return one
else:
return None