Adding Elements To Empty Dictionary In Python Functions