Initial attempt at Python interface