Changed slice notation to list() for copying lists.