PEP8 fixes, be more lenient in title parsing