Removed python warnings