# clip fishnet polygon to the extent of your irregular polygon
# union the clipped fishnet and your irregular polygon
Gday
Yes there is a way. I would use the 'fishnet' tool to make the grid.
Can't immediately help with the coding, but I would use the following process.
# determine extent of your irregular polygon
# create fishnet within that extent with your 1km parameters
# clip fishnet polygon to the extent of your irregular polygon
# union the clipped fishnet and your irregular polygon
# clean up any unwanted fields
Good luck!