'list' object has no attribute 'get'