final version of the drop table python script