Sql Define Variable Array Python Memory