There are two parts to your question - how to display discrete data (a data visualization issue) and how to do it in Python (a "what function do I call" issue).
I will deal with the first one.
With discrete distributions, there are a number of possible ways to display data.
Leaving aside direct implementation issues for the present, I see three main competitors:
the empirical cdf.
a sample probability function.
These are quite suitable for count data, for example.
This is quite suitable for ordered categories. If you order the bars from largest to smallest (or in some other meaningful-to-your-needs fashion), it's also suitable for unordered categories.
There are numerous other possibilities. However, I don't think a histogram is suitable for discrete data.
As for how you do things like this in python, after you choose a display, that would probably be a good, more specific question (but probably more on topic elsewhere; worded right it might fit better on StackOverflow, but you should check their help for what's on topic. With careful phrasing it might survive here, or it might work on Superuser.