A Thornton Cleveleys man has been jailed after 3D printing handgun parts at his home.