Bug 730255 - Python bindings: Assigns bill entries to non-existant invoice.

Add type checking to ensure entry type matches invoice (or bill) type.