auto array-ize scalars in python