Update utils.py

I added two function which convert list of arrays to an array and vice verse.
Merge pull request #1 from cdomokos/patch-1

Update utils.py