Why do people keep bringing up mobile devices like it is some kind of trump card? If you really want to script a mobile device, install whatever Linux distro you want on an Android phone and go to town. Congratulation, you just created a tiny under powered laptop with a shitty screen and an even shittier keyboard.
A smartphone is for checking the weather, reading, looking up places to eat, movies, requesting an Uber or figuring out what bus is coming next, and so on. If you're not using your smartphone for that stuff and instead are scripting your music collection, why even leave your house? Just stay at home and use a computer.