Python Make Class Function Json Array Of Integers In Python