using ConfigParser module to store username and password
some cleanup