Getting Values From Dictionary Python Functions