script now compatible with python3