fixed some python warnings