Json Input String Python Functions