ive configured chroot because some users need SSH connection. Anyway, when the user is connected on the IBMi , it is impossible run python scripts due to this error ...
As mentioned in the documention, don't use Python's simple HTTPServer in production. Have a look at django instead: https://www.djangoproject.com/.