ArcRest would be good to look into, but generally, if you're familiar with http requests and can monitor them using Fiddler or the Dev Tools, and you're familiar with how to submit requests using Python, you should be able to recreate the requests creating a service manually makes in Python. There's a sample script on creating hosted tiled layers, perhaps it can easily be modified.