Remove depricated python stuff