Adduser script for webmin

Webmin has the nifty module to add a plethora of users via a text file with the 13 fields... I'm modifying my (Huck's) python script to merely take a textfile with each user's full name, in the format 'firstname lastname', on new lines, and output them as a username in the format 1st 4 letters of the lastname + 1st 2 letters of the first name. Therefore John Smith = smitjo. Then you can just get the text file from your registrar and choose your 'username format' and create the file to upload to Webmin.

The code so far:  