[python] Returning the product of a list