Transform String Into Array Python Definition Functionary