Question: I accidentally deleted python, python2, python2.7 files from /usr/bin/. 
Now yum is also not working.

Is it possible to recover them?

Answer: 
*Generally* on UNIX-like systems, deleting a file means it cannot be retrieved. (Unless you are using a filesystem that has the ability to take [snapshots](http://en.wikipedia.org/wiki/Snapshot_%28computer_storage%29#File_systems), and you are using them.)

Restore the files from your most recent backup.
You can use: sudo rpm --reinstall -v <http://rpmfind.net/linux/centos/7.9.2009/updates/x86_64/Packages/python-2.7.5-90.el7.x86_64.rpm>. See <http://rpmfind.net/linux/RPM/centos/updates/7.9.2009/x86_64/Packages/python-2.7.5-90.el7.x86_64.html> for more packages