Fixed the broken python interface. closes #19