Deleted trailing whitespaces
Added several changes related to python