Made some modifications to main.py

Added the twitter api support. not yet implemented.