We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
PA failing since at least 2018-06-20
PA has been failing since 2018-06-20

Based on automated runs it appears that PA has not run successfully in 2 days (2018-06-20).


```
  loaded Open States pupa settings...
pa (scrape, import)
/opt/openstates/venv-pupa/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  bills: {}
  people: {}
  committees: {}
  """)
00:02:17 CRITICAL pupa: Session(s) 1962 Regular Session were reported by Pennsylvania.get_session_list() but were not found in Pennsylvania.legislative_sessions or Pennsylvania.ignored_scraped_sessions.
```

Visit http://bobsled.openstates.org for more info.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `openstates/pa/__init__.py`
Content:
```
1 from pupa.scrape import Jurisdiction, Organization
2 
3 from openstates.utils import url_xpath
4 
5 from .bills import PABillScraper
6 # from .events import PAEventScraper
7 from .people import PALegislatorScraper
8 from .committees import PACommitteeScraper
9 
10 settings = {'SCRAPELIB_RPM': 30}
11 
12 
13 class Pennsylvania(Jurisdiction):
14     division_id = "ocd-division/country:us/state:pa"
15     classification = "government"
16     name = "Pennsylvania"
17     url = "http://www.legis.state.pa.us/"
18     scrapers = {
19         'bills': PABillScraper,
20         # 'events': PAEventScraper,
21         'people': PALegislatorScraper,
22         'committees': PACommitteeScraper,
23     }
24     legislative_sessions = [
25         {
26             "_scraped_name": "2009-2010 Regular Session",
27             "classification": "primary",
28             "identifier": "2009-2010",
29             "name": "2009-2010 Regular Session"
30         },
31         {
32             "_scraped_name": "2009-2010 Special Session #1 (Transportation)",
33             "classification": "special",
34             "identifier": "2009-2010 Special Session #1 (Transportation)",
35             "name": "2009-2010, 1st Special Session"
36         },
37         {
38             "_scraped_name": "2011-2012 Regular Session",
39             "classification": "primary",
40             "identifier": "2011-2012",
41             "name": "2011-2012 Regular Session"
42         },
43         {
44             "_scraped_name": "2013-2014 Regular Session",
45             "classification": "primary",
46             "identifier": "2013-2014",
47             "name": "2013-2014 Regular Session"
48         },
49         {
50             "_scraped_name": "2015-2016 Regular Session",
51             "classification": "primary",
52             "identifier": "2015-2016",
53             "name": "2015-2016 Regular Session"
54         },
55         {
56             "_scraped_name": "2017-2018 Regular Session",
57             "classification": "primary",
58             "identifier": "2017-2018",
59             "name": "2017-2018 Regular Session",
60             "start_date": "2017-01-03",
61             "end_date": "2017-12-31"
62         }
63     ]
64     ignored_scraped_sessions = [
65         "1965-1966 Special Session #1",
66         "1965-1966 Special Session #2",
67         "1965-1966 Special Session #3",
68         "1963-1964 Regular Session",
69         "1963-1964 Special Session #1",
70         "1963-1964 Special Session #2",
71         "1961-1962 Regular Session",
72         "1961-1962 Special Session #1",
73         "1959-1960 Regular Session",
74         "1957-1958 Regular Session",
75         "1955-1956 Regular Session",
76         "1953-1954 Regular Session",
77         "1951-1952 Regular Session",
78         "1949-1950 Regular Session",
79         "1947-1948 Regular Session",
80         "1945-1946 Regular Session",
81         "1943-1944 Regular Session",
82         "1941-1942 Regular Session",
83         "1939-1940 Regular Session",
84         "1937-1938 Regular Session",
85         "1935-1936 Regular Session",
86         "1933-1934 Regular Session",
87         "1931-1932 Regular Session",
88         "1929-1930 Regular Session",
89         "1927-1928 Regular Session",
90         "1925-1926 Regular Session",
91         "1923-1924 Regular Session",
92         "1921-1922 Regular Session",
93         "1919-1920 Regular Session",
94         "1917-1918 Regular Session",
95         "1915-1916 Regular Session",
96         "1913-1914 Regular Session",
97         "1911-1912 Regular Session",
98         "1909-1910 Regular Session",
99         "1907-1908 Regular Session",
100         "1905-1906 Regular Session",
101         "1903-1904 Regular Session",
102         "1901-1902 Regular Session",
103         "1899-1900 Regular Session",
104         "1897-1898 Regular Session",
105         "1895-1896 Regular Session",
106         "1893-1894 Regular Session",
107         "1891-1892 Regular Session",
108         "1889-1890 Regular Session",
109         "1887-1888 Regular Session",
110         "1885-1886 Regular Session",
111         "1883-1884 Regular Session",
112         "1881-1882 Regular Session",
113         "1879-1880 Regular Session",
114         "1877-1878 Regular Session",
115         "1875-1876 Regular Session",
116         "1873-1874 Regular Session",
117         "1871-1872 Regular Session",
118         "1869-1870 Regular Session",
119         "1867-1868 Regular Session",
120         "1865-1866 Regular Session",
121         "1863-1864 Regular Session",
122         "1861-1862 Regular Session",
123         "1859-1860 Regular Session",
124         "1857-1858 Regular Session",
125         "1855-1856 Regular Session",
126         "1853-1854 Regular Session",
127         "1851-1852 Regular Session",
128         "1849-1850 Regular Session",
129         "1847-1848 Regular Session",
130         "1845-1846 Regular Session",
131         "1843-1844 Regular Session",
132         "1841-1842 Regular Session",
133         "1839-1840 Regular Session",
134         "1837-1838 Regular Session",
135         "1835-1836 Regular Session",
136         "1833-1834 Regular Session",
137         "1831-1832 Regular Session",
138         "1829-1830 Regular Session",
139         "1827-1828 Regular Session",
140         "1825-1826 Regular Session",
141         "1823-1824 Regular Session",
142         "1821-1822 Regular Session",
143         "1819-1820 Regular Session",
144         "1817-1818 Regular Session",
145         "1815-1816 Regular Session",
146         "1813-1814 Regular Session",
147         "1811-1812 Regular Session",
148         "1809-1810 Regular Session",
149         "1807-1808 Regular Session",
150         "1805-1806 Regular Session",
151         "1803-1804 Regular Session",
152         "1801-1802 Regular Session",
153         "1965-1966 Regular Session",
154         "1967-1968 Regular Session",
155         "1969-1970 Regular Session",
156         "1971-1972 Regular Session",
157         "1971-1972 Special Session #1",
158         "1971-1972 Special Session #2",
159         "1973-1974 Regular Session",
160         "1975-1976 Regular Session",
161         "1977-1978 Regular Session",
162         "1979-1980 Regular Session",
163         "1981-1982 Regular Session",
164         "1983-1984 Regular Session",
165         "1985-1986 Regular Session",
166         "1987-1988 Regular Session",
167         "1987-1988 Special Session #1",
168         "1989-1990 Regular Session",
169         "1991-1992 Regular Session",
170         "1991-1992 Special Session #1",
171         "1993-1994 Regular Session",
172         "1995-1996 Regular Session",
173         "1995-1996 Special Session #1",
174         "1995-1996 Special Session #2",
175         "1997-1998 Regular Session",
176         "1999-2000 Regular Session",
177         "2001-2002 Regular Session",
178         "2001-2002 Special Session #1",
179         "2003-2004 Regular Session",
180         "2005-2006 Regular Session",
181         "2005-2006 Special Session #1 (taxpayer relief act)",
182         "2007-2008 Regular Session",
183         "2007-2008 Special Session #1 (Energy Policy)",
184         # Different nomenclature, for sessions already in this list
185         "1962 Regular Session",
186         "1963 Regular Session",
187         "1963 Special Session #1",
188         "1963 Special Session #2",
189         "1964 Regular Session",
190         "1965 Regular Session",
191         "1966 Regular Session",
192         "1965 Special Session #1",
193         "1965 Special Session #3",
194         "1966 Special Session #1",
195         "1966 Special Session #3",
196     ]
197 
198     def get_organizations(self):
199         legislature_name = "Pennsylvania General Assembly"
200         lower_chamber_name = "House"
201         lower_seats = 203
202         lower_title = "Representative"
203         upper_chamber_name = "Senate"
204         upper_seats = 50
205         upper_title = "Senator"
206 
207         legislature = Organization(name=legislature_name,
208                                    classification="legislature")
209         upper = Organization(upper_chamber_name, classification='upper',
210                              parent_id=legislature._id)
211         lower = Organization(lower_chamber_name, classification='lower',
212                              parent_id=legislature._id)
213 
214         for n in range(1, upper_seats + 1):
215             upper.add_post(
216                 label=str(n), role=upper_title,
217                 division_id='{}/sldu:{}'.format(self.division_id, n))
218         for n in range(1, lower_seats + 1):
219             lower.add_post(
220                 label=str(n), role=lower_title,
221                 division_id='{}/sldl:{}'.format(self.division_id, n))
222 
223         yield legislature
224         yield upper
225         yield lower
226 
227     def get_session_list(self):
228         return url_xpath('http://www.legis.state.pa.us/cfdocs/legis/home/bills/',
229                          '//select[@id="billSessions"]/option/text()')
230
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/openstates/pa/__init__.py b/openstates/pa/__init__.py
--- a/openstates/pa/__init__.py
+++ b/openstates/pa/__init__.py
@@ -224,5 +224,10 @@
         yield lower
 
     def get_session_list(self):
+        # PA keeps slowly adding backdata, so just ignore it en masse
+        for i in range(1800, 2000):
+            self.ignored_scraped_sessions.append('{} Regular Session'.format(i))
+            self.ignored_scraped_sessions.append('{} Special Session #1'.format(i))
+
         return url_xpath('http://www.legis.state.pa.us/cfdocs/legis/home/bills/',
                          '//select[@id="billSessions"]/option/text()')

{"golden_diff": "diff --git a/openstates/pa/__init__.py b/openstates/pa/__init__.py\n--- a/openstates/pa/__init__.py\n+++ b/openstates/pa/__init__.py\n@@ -224,5 +224,10 @@\n         yield lower\n \n     def get_session_list(self):\n+        # PA keeps slowly adding backdata, so just ignore it en masse\n+        for i in range(1800, 2000):\n+            self.ignored_scraped_sessions.append('{} Regular Session'.format(i))\n+            self.ignored_scraped_sessions.append('{} Special Session #1'.format(i))\n+\n         return url_xpath('http://www.legis.state.pa.us/cfdocs/legis/home/bills/',\n                          '//select[@id=\"billSessions\"]/option/text()')\n", "issue": "PA failing since at least 2018-06-20\nPA has been failing since 2018-06-20\n\nBased on automated runs it appears that PA has not run successfully in 2 days (2018-06-20).\n\n\n```\n  loaded Open States pupa settings...\npa (scrape, import)\n/opt/openstates/venv-pupa/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use \"pip install psycopg2-binary\" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.\n  bills: {}\n  people: {}\n  committees: {}\n  \"\"\")\n00:02:17 CRITICAL pupa: Session(s) 1962 Regular Session were reported by Pennsylvania.get_session_list() but were not found in Pennsylvania.legislative_sessions or Pennsylvania.ignored_scraped_sessions.\n```\n\nVisit http://bobsled.openstates.org for more info.\n\n", "before_files": [{"content": "from pupa.scrape import Jurisdiction, Organization\n\nfrom openstates.utils import url_xpath\n\nfrom .bills import PABillScraper\n# from .events import PAEventScraper\nfrom .people import PALegislatorScraper\nfrom .committees import PACommitteeScraper\n\nsettings = {'SCRAPELIB_RPM': 30}\n\n\nclass Pennsylvania(Jurisdiction):\n    division_id = \"ocd-division/country:us/state:pa\"\n    classification = \"government\"\n    name = \"Pennsylvania\"\n    url = \"http://www.legis.state.pa.us/\"\n    scrapers = {\n        'bills': PABillScraper,\n        # 'events': PAEventScraper,\n        'people': PALegislatorScraper,\n        'committees': PACommitteeScraper,\n    }\n    legislative_sessions = [\n        {\n            \"_scraped_name\": \"2009-2010 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2009-2010\",\n            \"name\": \"2009-2010 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2009-2010 Special Session #1 (Transportation)\",\n            \"classification\": \"special\",\n            \"identifier\": \"2009-2010 Special Session #1 (Transportation)\",\n            \"name\": \"2009-2010, 1st Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2011-2012 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2011-2012\",\n            \"name\": \"2011-2012 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2013-2014 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2013-2014\",\n            \"name\": \"2013-2014 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2015-2016 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2015-2016\",\n            \"name\": \"2015-2016 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2017-2018 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2017-2018\",\n            \"name\": \"2017-2018 Regular Session\",\n            \"start_date\": \"2017-01-03\",\n            \"end_date\": \"2017-12-31\"\n        }\n    ]\n    ignored_scraped_sessions = [\n        \"1965-1966 Special Session #1\",\n        \"1965-1966 Special Session #2\",\n        \"1965-1966 Special Session #3\",\n        \"1963-1964 Regular Session\",\n        \"1963-1964 Special Session #1\",\n        \"1963-1964 Special Session #2\",\n        \"1961-1962 Regular Session\",\n        \"1961-1962 Special Session #1\",\n        \"1959-1960 Regular Session\",\n        \"1957-1958 Regular Session\",\n        \"1955-1956 Regular Session\",\n        \"1953-1954 Regular Session\",\n        \"1951-1952 Regular Session\",\n        \"1949-1950 Regular Session\",\n        \"1947-1948 Regular Session\",\n        \"1945-1946 Regular Session\",\n        \"1943-1944 Regular Session\",\n        \"1941-1942 Regular Session\",\n        \"1939-1940 Regular Session\",\n        \"1937-1938 Regular Session\",\n        \"1935-1936 Regular Session\",\n        \"1933-1934 Regular Session\",\n        \"1931-1932 Regular Session\",\n        \"1929-1930 Regular Session\",\n        \"1927-1928 Regular Session\",\n        \"1925-1926 Regular Session\",\n        \"1923-1924 Regular Session\",\n        \"1921-1922 Regular Session\",\n        \"1919-1920 Regular Session\",\n        \"1917-1918 Regular Session\",\n        \"1915-1916 Regular Session\",\n        \"1913-1914 Regular Session\",\n        \"1911-1912 Regular Session\",\n        \"1909-1910 Regular Session\",\n        \"1907-1908 Regular Session\",\n        \"1905-1906 Regular Session\",\n        \"1903-1904 Regular Session\",\n        \"1901-1902 Regular Session\",\n        \"1899-1900 Regular Session\",\n        \"1897-1898 Regular Session\",\n        \"1895-1896 Regular Session\",\n        \"1893-1894 Regular Session\",\n        \"1891-1892 Regular Session\",\n        \"1889-1890 Regular Session\",\n        \"1887-1888 Regular Session\",\n        \"1885-1886 Regular Session\",\n        \"1883-1884 Regular Session\",\n        \"1881-1882 Regular Session\",\n        \"1879-1880 Regular Session\",\n        \"1877-1878 Regular Session\",\n        \"1875-1876 Regular Session\",\n        \"1873-1874 Regular Session\",\n        \"1871-1872 Regular Session\",\n        \"1869-1870 Regular Session\",\n        \"1867-1868 Regular Session\",\n        \"1865-1866 Regular Session\",\n        \"1863-1864 Regular Session\",\n        \"1861-1862 Regular Session\",\n        \"1859-1860 Regular Session\",\n        \"1857-1858 Regular Session\",\n        \"1855-1856 Regular Session\",\n        \"1853-1854 Regular Session\",\n        \"1851-1852 Regular Session\",\n        \"1849-1850 Regular Session\",\n        \"1847-1848 Regular Session\",\n        \"1845-1846 Regular Session\",\n        \"1843-1844 Regular Session\",\n        \"1841-1842 Regular Session\",\n        \"1839-1840 Regular Session\",\n        \"1837-1838 Regular Session\",\n        \"1835-1836 Regular Session\",\n        \"1833-1834 Regular Session\",\n        \"1831-1832 Regular Session\",\n        \"1829-1830 Regular Session\",\n        \"1827-1828 Regular Session\",\n        \"1825-1826 Regular Session\",\n        \"1823-1824 Regular Session\",\n        \"1821-1822 Regular Session\",\n        \"1819-1820 Regular Session\",\n        \"1817-1818 Regular Session\",\n        \"1815-1816 Regular Session\",\n        \"1813-1814 Regular Session\",\n        \"1811-1812 Regular Session\",\n        \"1809-1810 Regular Session\",\n        \"1807-1808 Regular Session\",\n        \"1805-1806 Regular Session\",\n        \"1803-1804 Regular Session\",\n        \"1801-1802 Regular Session\",\n        \"1965-1966 Regular Session\",\n        \"1967-1968 Regular Session\",\n        \"1969-1970 Regular Session\",\n        \"1971-1972 Regular Session\",\n        \"1971-1972 Special Session #1\",\n        \"1971-1972 Special Session #2\",\n        \"1973-1974 Regular Session\",\n        \"1975-1976 Regular Session\",\n        \"1977-1978 Regular Session\",\n        \"1979-1980 Regular Session\",\n        \"1981-1982 Regular Session\",\n        \"1983-1984 Regular Session\",\n        \"1985-1986 Regular Session\",\n        \"1987-1988 Regular Session\",\n        \"1987-1988 Special Session #1\",\n        \"1989-1990 Regular Session\",\n        \"1991-1992 Regular Session\",\n        \"1991-1992 Special Session #1\",\n        \"1993-1994 Regular Session\",\n        \"1995-1996 Regular Session\",\n        \"1995-1996 Special Session #1\",\n        \"1995-1996 Special Session #2\",\n        \"1997-1998 Regular Session\",\n        \"1999-2000 Regular Session\",\n        \"2001-2002 Regular Session\",\n        \"2001-2002 Special Session #1\",\n        \"2003-2004 Regular Session\",\n        \"2005-2006 Regular Session\",\n        \"2005-2006 Special Session #1 (taxpayer relief act)\",\n        \"2007-2008 Regular Session\",\n        \"2007-2008 Special Session #1 (Energy Policy)\",\n        # Different nomenclature, for sessions already in this list\n        \"1962 Regular Session\",\n        \"1963 Regular Session\",\n        \"1963 Special Session #1\",\n        \"1963 Special Session #2\",\n        \"1964 Regular Session\",\n        \"1965 Regular Session\",\n        \"1966 Regular Session\",\n        \"1965 Special Session #1\",\n        \"1965 Special Session #3\",\n        \"1966 Special Session #1\",\n        \"1966 Special Session #3\",\n    ]\n\n    def get_organizations(self):\n        legislature_name = \"Pennsylvania General Assembly\"\n        lower_chamber_name = \"House\"\n        lower_seats = 203\n        lower_title = \"Representative\"\n        upper_chamber_name = \"Senate\"\n        upper_seats = 50\n        upper_title = \"Senator\"\n\n        legislature = Organization(name=legislature_name,\n                                   classification=\"legislature\")\n        upper = Organization(upper_chamber_name, classification='upper',\n                             parent_id=legislature._id)\n        lower = Organization(lower_chamber_name, classification='lower',\n                             parent_id=legislature._id)\n\n        for n in range(1, upper_seats + 1):\n            upper.add_post(\n                label=str(n), role=upper_title,\n                division_id='{}/sldu:{}'.format(self.division_id, n))\n        for n in range(1, lower_seats + 1):\n            lower.add_post(\n                label=str(n), role=lower_title,\n                division_id='{}/sldl:{}'.format(self.division_id, n))\n\n        yield legislature\n        yield upper\n        yield lower\n\n    def get_session_list(self):\n        return url_xpath('http://www.legis.state.pa.us/cfdocs/legis/home/bills/',\n                         '//select[@id=\"billSessions\"]/option/text()')\n", "path": "openstates/pa/__init__.py"}], "after_files": [{"content": "from pupa.scrape import Jurisdiction, Organization\n\nfrom openstates.utils import url_xpath\n\nfrom .bills import PABillScraper\n# from .events import PAEventScraper\nfrom .people import PALegislatorScraper\nfrom .committees import PACommitteeScraper\n\nsettings = {'SCRAPELIB_RPM': 30}\n\n\nclass Pennsylvania(Jurisdiction):\n    division_id = \"ocd-division/country:us/state:pa\"\n    classification = \"government\"\n    name = \"Pennsylvania\"\n    url = \"http://www.legis.state.pa.us/\"\n    scrapers = {\n        'bills': PABillScraper,\n        # 'events': PAEventScraper,\n        'people': PALegislatorScraper,\n        'committees': PACommitteeScraper,\n    }\n    legislative_sessions = [\n        {\n            \"_scraped_name\": \"2009-2010 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2009-2010\",\n            \"name\": \"2009-2010 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2009-2010 Special Session #1 (Transportation)\",\n            \"classification\": \"special\",\n            \"identifier\": \"2009-2010 Special Session #1 (Transportation)\",\n            \"name\": \"2009-2010, 1st Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2011-2012 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2011-2012\",\n            \"name\": \"2011-2012 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2013-2014 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2013-2014\",\n            \"name\": \"2013-2014 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2015-2016 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2015-2016\",\n            \"name\": \"2015-2016 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2017-2018 Regular Session\",\n            \"classification\": \"primary\",\n            \"identifier\": \"2017-2018\",\n            \"name\": \"2017-2018 Regular Session\",\n            \"start_date\": \"2017-01-03\",\n            \"end_date\": \"2017-12-31\"\n        }\n    ]\n    ignored_scraped_sessions = [\n        \"1965-1966 Special Session #1\",\n        \"1965-1966 Special Session #2\",\n        \"1965-1966 Special Session #3\",\n        \"1963-1964 Regular Session\",\n        \"1963-1964 Special Session #1\",\n        \"1963-1964 Special Session #2\",\n        \"1961-1962 Regular Session\",\n        \"1961-1962 Special Session #1\",\n        \"1959-1960 Regular Session\",\n        \"1957-1958 Regular Session\",\n        \"1955-1956 Regular Session\",\n        \"1953-1954 Regular Session\",\n        \"1951-1952 Regular Session\",\n        \"1949-1950 Regular Session\",\n        \"1947-1948 Regular Session\",\n        \"1945-1946 Regular Session\",\n        \"1943-1944 Regular Session\",\n        \"1941-1942 Regular Session\",\n        \"1939-1940 Regular Session\",\n        \"1937-1938 Regular Session\",\n        \"1935-1936 Regular Session\",\n        \"1933-1934 Regular Session\",\n        \"1931-1932 Regular Session\",\n        \"1929-1930 Regular Session\",\n        \"1927-1928 Regular Session\",\n        \"1925-1926 Regular Session\",\n        \"1923-1924 Regular Session\",\n        \"1921-1922 Regular Session\",\n        \"1919-1920 Regular Session\",\n        \"1917-1918 Regular Session\",\n        \"1915-1916 Regular Session\",\n        \"1913-1914 Regular Session\",\n        \"1911-1912 Regular Session\",\n        \"1909-1910 Regular Session\",\n        \"1907-1908 Regular Session\",\n        \"1905-1906 Regular Session\",\n        \"1903-1904 Regular Session\",\n        \"1901-1902 Regular Session\",\n        \"1899-1900 Regular Session\",\n        \"1897-1898 Regular Session\",\n        \"1895-1896 Regular Session\",\n        \"1893-1894 Regular Session\",\n        \"1891-1892 Regular Session\",\n        \"1889-1890 Regular Session\",\n        \"1887-1888 Regular Session\",\n        \"1885-1886 Regular Session\",\n        \"1883-1884 Regular Session\",\n        \"1881-1882 Regular Session\",\n        \"1879-1880 Regular Session\",\n        \"1877-1878 Regular Session\",\n        \"1875-1876 Regular Session\",\n        \"1873-1874 Regular Session\",\n        \"1871-1872 Regular Session\",\n        \"1869-1870 Regular Session\",\n        \"1867-1868 Regular Session\",\n        \"1865-1866 Regular Session\",\n        \"1863-1864 Regular Session\",\n        \"1861-1862 Regular Session\",\n        \"1859-1860 Regular Session\",\n        \"1857-1858 Regular Session\",\n        \"1855-1856 Regular Session\",\n        \"1853-1854 Regular Session\",\n        \"1851-1852 Regular Session\",\n        \"1849-1850 Regular Session\",\n        \"1847-1848 Regular Session\",\n        \"1845-1846 Regular Session\",\n        \"1843-1844 Regular Session\",\n        \"1841-1842 Regular Session\",\n        \"1839-1840 Regular Session\",\n        \"1837-1838 Regular Session\",\n        \"1835-1836 Regular Session\",\n        \"1833-1834 Regular Session\",\n        \"1831-1832 Regular Session\",\n        \"1829-1830 Regular Session\",\n        \"1827-1828 Regular Session\",\n        \"1825-1826 Regular Session\",\n        \"1823-1824 Regular Session\",\n        \"1821-1822 Regular Session\",\n        \"1819-1820 Regular Session\",\n        \"1817-1818 Regular Session\",\n        \"1815-1816 Regular Session\",\n        \"1813-1814 Regular Session\",\n        \"1811-1812 Regular Session\",\n        \"1809-1810 Regular Session\",\n        \"1807-1808 Regular Session\",\n        \"1805-1806 Regular Session\",\n        \"1803-1804 Regular Session\",\n        \"1801-1802 Regular Session\",\n        \"1965-1966 Regular Session\",\n        \"1967-1968 Regular Session\",\n        \"1969-1970 Regular Session\",\n        \"1971-1972 Regular Session\",\n        \"1971-1972 Special Session #1\",\n        \"1971-1972 Special Session #2\",\n        \"1973-1974 Regular Session\",\n        \"1975-1976 Regular Session\",\n        \"1977-1978 Regular Session\",\n        \"1979-1980 Regular Session\",\n        \"1981-1982 Regular Session\",\n        \"1983-1984 Regular Session\",\n        \"1985-1986 Regular Session\",\n        \"1987-1988 Regular Session\",\n        \"1987-1988 Special Session #1\",\n        \"1989-1990 Regular Session\",\n        \"1991-1992 Regular Session\",\n        \"1991-1992 Special Session #1\",\n        \"1993-1994 Regular Session\",\n        \"1995-1996 Regular Session\",\n        \"1995-1996 Special Session #1\",\n        \"1995-1996 Special Session #2\",\n        \"1997-1998 Regular Session\",\n        \"1999-2000 Regular Session\",\n        \"2001-2002 Regular Session\",\n        \"2001-2002 Special Session #1\",\n        \"2003-2004 Regular Session\",\n        \"2005-2006 Regular Session\",\n        \"2005-2006 Special Session #1 (taxpayer relief act)\",\n        \"2007-2008 Regular Session\",\n        \"2007-2008 Special Session #1 (Energy Policy)\",\n        # Different nomenclature, for sessions already in this list\n        \"1963 Regular Session\",\n        \"1963 Special Session #1\",\n        \"1963 Special Session #2\",\n        \"1964 Regular Session\",\n        \"1965 Regular Session\",\n        \"1966 Regular Session\",\n        \"1965 Special Session #1\",\n        \"1965 Special Session #3\",\n        \"1966 Special Session #1\",\n        \"1966 Special Session #3\",\n    ]\n\n    def get_organizations(self):\n        legislature_name = \"Pennsylvania General Assembly\"\n        lower_chamber_name = \"House\"\n        lower_seats = 203\n        lower_title = \"Representative\"\n        upper_chamber_name = \"Senate\"\n        upper_seats = 50\n        upper_title = \"Senator\"\n\n        legislature = Organization(name=legislature_name,\n                                   classification=\"legislature\")\n        upper = Organization(upper_chamber_name, classification='upper',\n                             parent_id=legislature._id)\n        lower = Organization(lower_chamber_name, classification='lower',\n                             parent_id=legislature._id)\n\n        for n in range(1, upper_seats + 1):\n            upper.add_post(\n                label=str(n), role=upper_title,\n                division_id='{}/sldu:{}'.format(self.division_id, n))\n        for n in range(1, lower_seats + 1):\n            lower.add_post(\n                label=str(n), role=lower_title,\n                division_id='{}/sldl:{}'.format(self.division_id, n))\n\n        yield legislature\n        yield upper\n        yield lower\n\n    def get_session_list(self):\n        # PA keeps slowly adding backdata, so just ignore it en masse\n        for i in range(1800, 2000):\n            self.ignored_scraped_sessions.append('{} Regular Session'.format(i))\n            self.ignored_scraped_sessions.append('{} Special Session #1'.format(i))\n\n        return url_xpath('http://www.legis.state.pa.us/cfdocs/legis/home/bills/',\n                         '//select[@id=\"billSessions\"]/option/text()')\n", "path": "openstates/pa/__init__.py"}]}