aalp python expansion