Javascript Push And Pop Array Python Initialize Variable To Null