Python Function With Array As Parameter