Simple parental tools, manage child or teens screentime on ubuntu.
eg:
john;40
maria;300
This means user 'john' and 'maria' only allow to login via desktop for 40 and 300 minutes respectively per day.
Run limit.py as root in the background.
Optional You can use supervisor (apt get supervisor) makesure limit.py always run in background.
Test on Ubuntu 18.10, python3