fixed python 2 and 3 code incompatibility; added batch script for removal temporary files