python solution for MethodsArgs