Create 311.py

Added main file.