create maplayer function
PEP formatting
Split layer tree into another loop
use longer name for special ID