Added Python validation