Made const placement consistent (const placed after type it refers to). ...

...Also merged duplicate of clear_python_errors and changed test directory layout