How to convert Java class to Python

Oops. "in’ is a reserved word in python. Use a different parameter name.