Remove obsolete Python code