a simple login and register python script, ps:run better in windows