Fixed Size Array Javascript Function Definition Python