Switched list.copy to copy.copy
Updated mock imports to work with Python 3.2 and pypy