Added function find_connected_exposed, which currently only works for odd numbered layers, for which plates run in a North/South direction. Made script more PEP8 compliant.