Fixed issue with older python syntax and default surface layer