Whilst you can amend the code as you have and that will work, you will get a dependancy conflict on the pypck library if you try and change its version.
You can hack this by setting up shell access to your HA instance and change the manifest file of the core lcn component and its entry in requirements_all.txt
Much better to create yourself a dev environment and do it this way, especially if you plan to issue a PR for your changes.