Changed the py_in argument validation