Panos, Erik, the issue here is likely that Python's "int" objects are immutable. Therefore, you can't pass around ints by reference, only by-value. If the compiler is confused, perhaps you need to explicitly set a return-value policy that makes this clear ? Stefan -- ...ich hab' noch einen Koffer in Berlin...