Fixes to atmo init to make it compatible with python2.4