After a few days of struggling, I got a python codes to work with my hosting account. I am having a bit of trouble running a specific code though (Also I read the TOS and didn't see anything against running a socket server.)
#!/usr/bin/env python
print("Content-type: text/html\n")
# TCP server...