Adding python 2.4 compatibility and ability to detect and fetch passwords from amportal.conf file if present instead of asking password from user