Fix ambiguous statement.
Add new use flags to the python interface.
Fix a bunch of compiler warnings.