Update ad.py

Fixed issue with passing None to ADUser; it was failing without passing some variable.