removed references to specific python versions
convert arguments to c types
added missing import and use keyword arguments in example script