Fixed two minor Python issues