fixed security tests not working in ancient python versions